﻿namespace SUNRPA.CONTROLS.IMPL.domain.flowItemParam {
    [Serializable]
    public class SetWindowStatusNParam : BaseParam {
        //获取窗口方式0当前激活窗口（目前只支持）1、通过窗口标题名 2、捕捉窗口对象
        private int getWindowWays = 0;
        //要设置的窗口状态0最大 1、最小 2、关闭
        private int winStatus = 0;

        public int GetWindowWays {
            get => getWindowWays;
            set {
                getWindowWays = value;
                NotifyPropertyChanged("GetWindowWays");
            }
        }


        public int WinStatus {
            get => winStatus;
            set {
                winStatus = value;
                NotifyPropertyChanged("WinStatus");
            }
        }

        public string GetTranslateGetWindowWays() {
            switch(this.getWindowWays) {
                case 0:
                    return "前激活窗口";
                case 1:
                    return "通过窗口标题名";
                case 2:
                    return "捕捉窗口对象";
                default:
                    return "前激活窗口";
            }
        }


        public string GetTranslateWinStatus() {
            switch(this.winStatus) {
                case 0:
                    return "最大";
                case 1:
                    return "最小";
                case 2:
                    return "关闭";
                default:
                    return "最大";
            }
        }
    }
}
